xmlgeneric: Björn makes files more const-correct.
authoroliskoli <oliskoli>
Mon, 25 Aug 2008 07:33:47 +0000 (07:33 +0000)
committeroliskoli <oliskoli>
Mon, 25 Aug 2008 07:33:47 +0000 (07:33 +0000)
xmlgeneric.c
xmlgeneric.h

index cef070833f67dbab4de5344773e734d039646bd7..8fcbfc3d897431a03d985dcf043388a5c5c80a45 100644 (file)
@@ -131,7 +131,7 @@ xml_fill_in_time(char *time_string, const time_t timep, int microseconds, int lo
 }
 
 void
-xml_write_time(gbfile *ofd, const time_t timep, int microseconds, char *elname)
+xml_write_time(gbfile *ofd, const time_t timep, int microseconds, const char *elname)
 {
        char time_string[64];
        xml_fill_in_time(time_string, timep, microseconds, XML_LONG_TIME);
index 99b1f5c09e6cc61c08466192745862d6fd204362..79fa84a2fcc765520533310bd8a607a939f02d6c 100644 (file)
@@ -50,7 +50,7 @@ void write_xml_entity_end(gbfile *ofd, const char *indent, const char *tag);
 
 void write_optional_xml_entity(gbfile *ofd, const char *indent,
                const char *tag, const char *value);
-void xml_write_time(gbfile *ofd, const time_t timep, int microseconds, char *elname);
+void xml_write_time(gbfile *ofd, const time_t timep, int microseconds, const char *elname);
 void xml_fill_in_time(char *time_string, const time_t timep, int microseconds,
                int long_or_short);
 void write_xml_header(gbfile *ofd);